package com.qd.vmm.commons.r;

import lombok.Getter;

@Getter
public enum Codes {
    SUCC(200, "成功"),
    FAIL(500, "失败"),
    NO_POWER(406, "权限不足"),
    HOUSE_EXISTE(407, "房屋标题已经存在"),
    HOUSE_NO_HEGE(408, "房屋资质不合格"),
    PARAMS_ERROR(409, "参数校验异常");

    private final Integer code;
    private final String msg;

    /**
     * 全参构造方法
     * @param code
     * @param msg
     */
    Codes(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
